#ifndef _DLG_9x9_H_
#define _DLG_9x9_H_

#include <QDialog>
#include <QLineEdit>

QT_BEGIN_NAMESPACE
class QCheckBox;
class QLabel;
class QErrorMessage;
QT_END_NAMESPACE

#define MB_OK        (1)
#define MB_CANCEL    (2)
#define MB_WAIT      (0)


class Dlg9x9 : public QDialog
{
	Q_OBJECT    

public:
    Dlg9x9(QWidget *parent = 0);
    int getAsk();
    void onShow9x9();
    void onHide9x9();

signals:
    void findNext(const QString &name);
    void sigShow9x9();
    void sigHide9x9();
private slots:
    void set_net();
    void hello();
    void do_find();
    void doShow9x9();
    void doHide9x9();
    void doBtnClick();
protected:
    // void keyPressEvent(QKeyEvent *keyEvent);
    // bool event(QEvent * pEvent );
    // void reject();
    // void keyPressEvent(QKeyEvent *event);
private:
    int m_ask;
    QLabel *integerLabel;
    QLabel *label_ip;
    QLabel *label_mask;
    QLabel *label_gw;
    QLabel *label_dns;

    QLineEdit *edit_ip;
    QLineEdit *edit_mask;
    QLineEdit *edit_gw;
    QLineEdit *edit_dns;


    QPushButton *btn_ok1;
    QPushButton *btn_ok2;
    QPushButton *btn_ok3;

    QPushButton *btn_ok4;
};

#endif
